package com.yand.mapper.system;

import com.yand.api.entity.system.TSysMenu;
import com.yand.api.entity.system.TSysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface TSysRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TSysRole record);

    int insertSelective(TSysRole record);

    TSysRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TSysRole record);

    int updateByPrimaryKey(TSysRole record);

    List<TSysRole> selectAllRoleList(TSysRole record);

    List<TSysMenu> selectMenuByRoleId(int roleId);
}